package com.itheima.domain.db;

import cn.hutool.core.util.RandomUtil;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QuestionnaireReport implements Serializable {
    private Integer id;
    private Long userId;
    private Integer conclusionId;
    private String cover;

    //四维得分为随机吧
    private Integer extroversion = RandomUtil.randomInt(10, 100);
    private Integer judgement = RandomUtil.randomInt(10, 100);
    private Integer abstraction = RandomUtil.randomInt(10, 100);
    private Integer retionality = RandomUtil.randomInt(10, 100);

    @TableField(fill = FieldFill.INSERT)
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;
}
